<?php

use Faker\Generator as Faker;
use Illuminate\Support\Facades\Storage;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generate new
| model instances for testing / seeding your application's database.
|
*/

$factory->define(\App\Models\User::class, function (Faker $faker) {
    $storage = \Illuminate\Support\Facades\Storage::disk('public');
    $files = $storage->allFiles('images');
    return [
        'name' => $faker->name,
        'avatar' => $faker->avatar,
        'api_token' => 'nLmpsXop26OYySP7J2mn7twp4CImfPWpIvkCxIpuezQUtIi0nA1e3jdZ6xXI',
    ];
});
